Repository navigation
fix(kge): require an available engine in opted-in benchmark gates - #1461
Merged
Merged
Conversation
`bench/run.mjs --gate` could print PASS with every check skipped and exit 0 when the native/WASM engine was absent. Add `--gate --require-engine`: an unavailable engine records a failed `required_engine` row and exits 1, and a skipped requested suite also fails strict execution. `--report-only` keeps its contract (records failures, exits 0). `--require-engine` without `--gate` is rejected. Default behavior is unchanged. Ported from #1208 (stacked on #1183) onto main; only bench/run.mjs and test/bench.test.mjs change. 22/22 bench contract tests pass on main. Co-Authored-By: claude-flow <ruv@ruv.net>
This was referenced Nov 10, 2026
vitaly-z
pushed a commit
to vitaly-z/ruvector
that referenced
this pull request
Nov 11, 2026
Adds opt-in `--gate --strict-evidence` to bench/run.mjs on top of `--require-engine` (ruvnet#1461). Default, `--require-engine` and `--report-only` behavior are unchanged. Strict evidence requires: engine evaluation; completed requested training with finite telemetry; finite, bounded filtered head/tail metrics for every populated split; successful execution of every explicitly requested optional arm (ANN, tie check, adversarial retraining, whose train() errors are no longer discarded); and, when a baseline is supplied, a compatible schema, suite, requested scorer, full recorded config, tie mode, dataset split and file hashes, plus finite transfer MRR. Ported from ruvnet#1213 (11 commits stacked on ruvnet#1208's branch, which landed as ruvnet#1461) onto main. Bench contract tests: 30/30 (22 existing + 8 strict). Full kge suite: 0 failures, same 24 engine-absent skips as main. Known gap carried from ruvnet#1213: strict baseline comparison when the dataset has no transfer split is source-reviewed but not exercised by a test. Co-Authored-By: claude-flow <ruv@ruv.net>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ports #1208 onto
main. #1208 was stacked on #1183, but only touches the two kge bench files, which exist on main unchanged.bench/run.mjs --gatecould print PASS with every check skipped and exit 0 when the native/WASM engine was absent. This adds--gate --require-engine:required_enginerow is recorded and the bench exits 1.--report-onlykeeps its contract: it records failures and exits 0.--require-enginewithout--gateis rejected.Validation:
node --test test/bench.test.mjspasses 22/22 on this branch, none skipped.Release: none needed.
bench/andtest/are not in the packagefiles.Supersedes #1208.
🤖 Generated with claude-flow